var dialog = {

    error: function (message) {
        layer.open({
                content: message,
                icon: 2,
                title: '错误提示',
            }
        );
    },

    //成功弹窗
    succeed: function (message, url) {
        layer.open({
            content: message,
            icon: 1,
            yes: function () {
                location.href = url;
            },
        });
    },
}